package com.KKd.service;

import com.KKd.pojo.Diary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiaryService {
    //添加日记
    int addSelfDiary(Diary diary);
    //根据id删除日记
    int deleteDiaryById(int diaryId);
    //修改日记
    int updateDiary(Diary diary);
    //查询日记
    List<Diary> queryDiaries();
}
